//
//  NetConnection.h
//  weizhuan
//
//  Created by lixun on 13-8-2.
//  Copyright (c) 2013年 lixun. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "MBProgressHUD.h"
#import "ASICacheDelegate.h"
#include <arpa/inet.h>
#include <net/if.h>
#include <ifaddrs.h>
//#import "Message/NetworkController.h"




@interface NetUtility : NSObject<ASICacheDelegate>

+(NSString *)getsoftware;
//+(NSString *)macAddress;//获得手机的mac地址
//+(NSString *)localIPAddress;//获得手机的内网IP
//+(NSString *)deviceIPAdress;
//+(NSString *)getIMEI;//获得手机的IMEI
//+(BOOL)isJailBroken; //判断手机是否越狱
+(NSString *)getUUID;
+(NSString *)getNetType;//获取设备联网方式
+(NSString *)getFenBianLv;



+ (id)getDataWithURLStr:(NSString*)inURLString andPostStr:(NSString*)inPostStr;
+ (id)getDataWithURLStr:(NSString*)inURLString andPostStr:(NSString*)inPostStr andView:inView;
+ (id)getDataWithURLStr:(NSString*)inURLString andPostDict:(NSDictionary*)inPostDict;
+ (id)getDataWithURLStr:(NSString*)inURLString andPostDict:(NSDictionary*)inPostDict andView:inView;
+ (id)getDataWithURLStr:(NSString*)inURLString andPostStr:(NSString*)inPostStr andType:(NSString*)inType andData:(NSData*)inData andDataKey:(NSString*)inDataKey;
+ (id)getDataWithURLStr:(NSString*)inURLString andPostDict:(NSDictionary*)inPostDict andType:(NSString*)inType andData:(NSData*)inData andDataKey:(NSString*)inDataKey;
+ (id)getDataWithURLStr:(NSString*)inURLString andQueryStr:(NSString*)inQueryStr andGetStr:(NSString*)inGetStr;
+ (id)getDataWithURLStr:(NSString*)inURLString andQueryStr:(NSString*)inQueryStr andGetStr:(NSString*)inGetStr andView:inView;
+ (id)getDataWithCacheURLStr:(NSString*)inURLString andQueryStr:(NSString*)inQueryStr andGetStr:(NSString*)inGetStr;
+(UIViewController*)viewController:(UIView *)myView;

+(NSMutableDictionary*)addHudDictInView:(UIView*)inView andStr:(NSString*)inStr;
+ (void)releaseHudDict:(NSMutableDictionary*)inHudDict;

//多图片上传
+ (id)getDataWithURLStr:(NSString*)inURLString andPostStr:(NSMutableDictionary*)inPostDic andType:(NSString*)inType andImageArray:(NSMutableArray *)imageArray andDataKey:(NSString*)inDataKey;

+ (id)getDataWithURLStr:(NSString*)inURLString andPostStr:(NSMutableDictionary*)inPostDic andType:(NSString*)inType andImageDict:(NSMutableDictionary *)imageDic;

@end
